package cn.sciento.farm.devicemanager.service;

import cn.sciento.farm.devicemanager.dao.entity.DevWaterFertilizer;

import java.util.List;

/**
 * <p>
 * 水肥机管理 服务类
 * </p>
 *
 * @author wumu
 * @since 2019-05-14
 */
public interface WaterFertilizerService {

    int insert(DevWaterFertilizer waterFertilizer);

    int updateById(DevWaterFertilizer waterFertilizer);

    DevWaterFertilizer getById(Long id);

    DevWaterFertilizer getByEui(String eui);

    int deleteById(Long id);

    List<DevWaterFertilizer> getByAreaId(int areaId);

    int updateOnline(String concentrator, int status);

    int deleteByAreaId(Integer areaId);
}
